home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / os2 / remin301.zip / REMIN300.ZIP / MAKEFILE < prev    next >
Text File  |  1992-11-10  |  3KB  |  93 lines

  1. # Makefile for REMIND
  2.  
  3. #-----------------------------------------------------------------------------
  4. # THINGS FOR YOU TO EDIT START BELOW
  5. #-----------------------------------------------------------------------------
  6.  
  7. # Uncomment the next line if you are running on a SYSV system
  8. # SYSV= -DSYSV
  9.  
  10. # Uncomment the next line if you are running on any type of UNIX system
  11. UNIX= -DUNIX
  12.  
  13. # Uncomment the next line if you want to use gcc instead of default compiler
  14. CC= gcc
  15.  
  16. # Put any additional flags for the C compiler here
  17. CFLAGS= -O -ansi
  18. CDEFS=
  19.  
  20. #-----------------------------------------------------------------------------
  21. # YOU SHOULDN'T EDIT ANYTHING BELOW HERE.  You may want to change some things
  22. # in config.h; then, you should be able to type 'make'.
  23. #-----------------------------------------------------------------------------
  24. VERSION= 03.00.00
  25.  
  26. HDRS= config.h err.h expr.h globals.h protos.h types.h version.h
  27. STDHDRS= config.h types.h protos.h globals.h err.h
  28. SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c init.c \
  29. main.c omit.c queue.c token.c trigger.c userfns.c utils.c var.c
  30.  
  31. MANIFEST= README.UNIX README.DOS COPYRIGHT $(HDRS) $(SRCS) Makefile rem rem.1 \
  32. remind.1 remind-all.csh remind-all.sh test.rem test-rem test.cmp makefile.tc \
  33. makefile.msc lnk.msc lnk.tc MANIFEST.UNX MANIFEST.DOS WHATSNEW.30 kall kall.1
  34.  
  35. OBJS= $(SRCS:.c=.o)
  36.  
  37. remind: $(OBJS)
  38.     $(CC) -o remind $(OBJS)
  39.  
  40. .c.o:
  41.     $(CC) $(UNIX) $(SYSV) -c -o $*.o $(CFLAGS) $(CDEFS) $*.c
  42.  
  43. clean:
  44.     rm -f *.o *~
  45.  
  46. calendar.o: calendar.c $(STDHDRS) expr.h
  47. dorem.o: dorem.c $(STDHDRS) expr.h
  48. dosubst.o: dosubst.c $(STDHDRS)
  49. expr.o: expr.c $(STDHDRS) expr.h
  50. files.o: files.c $(STDHDRS)
  51. funcs.o: funcs.c $(STDHDRS) expr.h version.h
  52. globals.o: globals.c config.h types.h globals.h err.h
  53. init.o: init.c $(STDHDRS) expr.h version.h
  54. main.o: main.c $(STDHDRS) expr.h
  55. omit.o: omit.c $(STDHDRS)
  56. queue.o: queue.c $(STDHDRS)
  57. token.o: token.c $(STDHDRS)
  58. trigger.o: trigger.c $(STDHDRS) expr.h
  59. userfns.o: userfns.c $(STDHDRS) expr.h
  60. utils.o: utils.c $(STDHDRS)
  61. var.o: var.c $(STDHDRS) expr.h
  62.  
  63. tarZ:
  64.     tar cvf remind-3.0.0.tar $(MANIFEST)
  65.     compress -v remind-3.0.0.tar
  66.  
  67. shar:
  68.     shar -x -n"Remind $(VERSION)" -l45 -o./Shar $(MANIFEST)
  69.  
  70. todos:
  71.     mdel 'a:*.*'
  72.     mdel 'a:*'
  73.     mcopy -tn $(MANIFEST) a:
  74.  
  75. fromdos:
  76.     mcopy -tn 'a:*' .
  77.     -mv -f copyrigh COPYRIGHT
  78.     -mv -f makefile Makefile
  79.     -mv -f readme.dos README.DOS
  80.     -mv -f readme.uni README.UNIX
  81.     -mv -f remind-a.csh remind-all.csh
  82.     -mv -f remind-a.sh remind-all.sh
  83.     -mv -f manifest.dos MANIFEST.DOS
  84.     -mv -f manifest.unx MANIFEST.UNX
  85.     -mv -f whatsnew.30 WHATSNEW.30
  86.     -chmod u+x test-rem
  87.  
  88. backup:
  89.     cp $(MANIFEST) ../backup
  90.  
  91. transmit:
  92.     sz -a -Z -e $(MANIFEST)
  93.